/*
 * GeoVISTA Center (Penn State, Dept. of Geography)
 * Copyright (c), 2003-2011,  Jin Chen and Alan M. MacEachren, GeoVISTA Center, Penn State University
 * All Rights Researved.
 *
 * This library is developed and distributed for free usage,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * You can redistribute and/or modify it under the terms of the
 * Simplified BSD License
 *
 *
 *
 *
 *
 *
 *
 *
 * @author: jin Chen 
 * @date: Oct 16, 2003$
 * @version: 1.0
 */
package edu.psu.geovista.app.pcp.animation.event;

import java.util.EventObject;

public class AnimationEvent extends EventObject{
    public static final int ANIMATION_ON=0;//The event means the animation is continuing
    public static final int ANIMATION_AboutToStart=-1;//The event means animation is about to start, not yet
    public static final int ANIMATION_Stoped=-2;//means animation is stoped
    public static final int ANIMATION_Paused=-3;
    protected float value;
    protected int state;

    public AnimationEvent(Object source, float value, int state) {
        super(source);
        this.value = value;
        this.state =state;
    }

    public float getValue() {
        return value;
    }

    public int getState() {
        return state;
    }

   /* public void setId(int id) {
        this.id = id;
    }*/
}
